import { modal } from 'vue-strap'
import DatePicker from 'vue-datepicker'
import getDatePickerOption from '../../../../util/date-picker-option'
import { getBetaDaySummaryList, showMsg } from '../../../../vuex/action'

export default {
  data() {
    return {
      isShowForm: true,
      datePickerOption: getDatePickerOption()
    }
  },
  props: {
    params: {
      type: Object
    },
    statementType: {
      type: String
    }
  },
  methods: {
    toogleShowForm() {
      this.isShowForm = !this.isShowForm
    },
    submit() {
      this.$dispatch('toogle_query')
    }
  },
  vuex: {
    actions: {
      xGetBetaDaySummaryList: getBetaDaySummaryList,
      xShowMsg: showMsg
    }
  },
  components: {
    'vue-modal': modal,
    'vue-date-picker': DatePicker
  }
}
